echo "# Starting to Deploy and Backup"

echo "## Starting to Deploy"
echo "###  Deleting  .deploy_git folder"
rm -rf ./.deploy_git/
echo "##  Done"
echo "###  Executing Hexo Clean Command"
hexo clean
echo "###  Done"
echo "###  Executing hexo g Command"
hexo g
echo "###  Done"
echo "###  Executing hexo d Command"
hexo d
echo "###  Done"
echo "##  Deployed"

echo "## Starting to Backup"
echo "### Executing git add . Command"
git add .
echo "###  Done"
echo "###  Executing git commit  Command"
git commit -m "backup"
echo "###  Done"
echo "###  Executing git push Command"
git push -u backup
echo "###  Done"
echo "##  Backup Done"

echo "# Finished Deploy and Backup"